package com.mc.lp.core.util.property;

/**
 * this will hold all types of properties that exists in database as well as in file system. 
 * @author deepak
 * 
 */
public enum PropertyFile{
	REPORTING(PropertyFileType.DATABASE,""),
	EMAIL_CONFIG(PropertyFileType.FILE_SYSTEM,"email.properties");
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	//keep it below and keep this file clean :)
	//define where properties are stored.
	private PropertyFileType type;
	private String uri;
	private PropertyFile(PropertyFileType type,String uri) {
		this.type=type;
		this.uri=uri;
	}
	public String getUri() {
		return uri;
	}
	public PropertyFileType getType() {
		return type;
	}
	
	//currently handling two types of file handling
	public enum PropertyFileType{
		//in case of database uri would be the table name e.g DB_PROPERTY
		DATABASE, //db_Config table
		//file system uri would be the name of the file loaded in class path
		FILE_SYSTEM; //always read from class path
	}
}
